'use strict'
/* commonjs规范  es6规范写法 注意区别 */
 var greet = require('./hello');
 var http = require('http');
 
greet('jackma');

var server = http.createServer(function (request, response) {
    console.log(request.method + request.url);
    response.writeHead(200, {'Context-Type':'text/html'});
    response.end('<h1>hello world!</h1>');
    
});

server.listen(9000);
console.log("server is running...........................");